package com.blink.optimize.algorithm;

import com.blink.optimize.algorithm.fifo.FIFOCache;

/**
 * <Description> 测试先进先出算法</Description>
 * <ClassName> TestFIFO</ClassName>
 *
 * @Author liuxianzhao
 * @Date 2018年01月09日 10:34
 */
public class TestFIFO {
    public static void main(String[] args) {
        FIFOCache fifoCache = FIFOCache.create(5);
        for (int i = 0; i < 50; i++) {
            fifoCache.put("object" + i, i);
        }
        System.out.println(fifoCache.getCacheData().toString());
    }

}
